package com.dailyblue.java.spring.boot.simple.example.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Data
@ConfigurationProperties(prefix = "headmaster")
@Component
public class Teacher implements Serializable {
    private Integer id;
    private String name;
    private String subject;
    private String desc;
}
